package cn.wolfcode.crm.query;

import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
//分页条件
public class QueryObject {
    private int page;//当前页
    private int rows;//页面容量

    //分页
    public int getStartIndex() {
        return (page - 1) * rows;
    }
}
